package com.fhz.big

/**
 * 时间:2023/4/7
 * @author Mr.Feng
 * 简述: TODO
 */
class User {

    var age:Int = 50

    // +
    operator fun plus(obj: User): User {
       var a = age +  obj.age
        val user = User()
        user.age = a
        return user
    }

    operator fun minus(obj: User):User{
        var a = age -  obj.age
        val user = User()
        user.age = a
        return user
    }
}